package demo1;

public class Dog extends  Animal{
    static {
        System.out.println("执行了子类的静态代码块");
    }
    public Dog(){
        super("kunkun",5);
        System.out.println("执行了子类的构造方法");
    }
    {
        System.out.println("执行了子类的实例代码块");
    }


//    public Dog(String name,int age){
//        super("kunkun",5);
//    }

//    public void bark(){
//        System.out.println(this.name+"正在汪汪叫" );
//    }
}
